Skip to content

fix(agent): guard missing verbose on headless args#535

Merged
dwash96 merged 1 commit into
cecli-dev:v0.100.2from
Digital-Defiance:fix/agent-headless-verbose
May 30, 2026
Merged

fix(agent): guard missing verbose on headless args#535
dwash96 merged 1 commit into
cecli-dev:v0.100.2from
Digital-Defiance:fix/agent-headless-verbose

Conversation

@JessicaMulein
Copy link
Copy Markdown

Summary

BrightVision and other headless callers use Coder.create(..., args=SimpleNamespace(...)) via bright_vision_core.headless_args.default_headless_args(), which did not always define every flag the interactive CLI sets.

AgentCoder.initialize_mcp_tools() accessed self.args.verbose unconditionally, which raised:

AttributeError: 'types.SimpleNamespace' object has no attribute 'verbose'

when users ran /agent through the Vision HTTP API.

This change uses getattr(self.args, "verbose", False) (and treats missing args as false), matching the pattern already used in cecli/commands/run.py.

Not in scope

Test plan

  • python -m pytest tests/core/test_headless_agent.py -q (BrightVision, with source activate.sh)
  • E2E_LLM=1 python -m pytest tests/core/test_agent_llm.py -q (optional, needs Ollama)
  • BrightVision: yarn tauri dev → Terminal Start → chat /agent short prompt → no verbose error in chat/terminal

@dwash96 dwash96 changed the base branch from main to v0.100.2 May 30, 2026 19:19
@dwash96 dwash96 merged commit 8f6c57c into cecli-dev:v0.100.2 May 30, 2026
12 checks passed
@dwash96 dwash96 mentioned this pull request May 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants